<template>
  <li class="item">
    <div :class="{slot:index<3}">

    <slot ></slot>
    </div>
    <div class="title" v-if="item">
      <h6>{{item.name}}</h6>
      <p><span v-show="item.song.privilege&&item.song.privilege.playMaxbr==999000"></span>{{item.song.album.artists[0].name}}-{{item.song.album.name}}</p>

    </div>
    <div class="play" @click="$emit('play',item)"></div>

  </li>
</template>
<script>
export default {
  props: {
    item: Object,
    index:Number
  },
};
</script>
<style lang="less" scoped>
.item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  // border: solid 1px blue;
  border-bottom: solid 1px #f8f8f9;
  line-height: 1.6;
  padding: 0 10px;
  color: #333;
  .slot{
  //   color: #c2afa5;
  //   // line-height: 100%;
  // font-size: 18px;
  color:red
  }
  .title {
    width: 82%;
    flex: 1;
    margin-left: 10px;
    h6 {
      font-size: 16px;
      font-weight: 500;
    }
    p {
      font-size: 10px;
      color: #8896b7;
      // height: 22px;
      span {
        display: inline-block;
        width: 12px;
        height: 8px;
        margin-right: 4px;
        background: url(../assets/pic/index_icon_2x.png) no-repeat;
        background-size: 166px 97px;
        font-size: 12px;
        color: #888;
      }
    }
  }
  .play {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: url(../assets/pic/index_icon_2x.png) no-repeat;
    background-size: 166px 97px;
    background-position: -24px 0;
    margin-top: 11px;
  }
}
</style>




 